Revert "tests/libtest.sh: Print non-matching file on failure"
authorColin Walters <walters@verbum.org>
Mon, 11 Jul 2016 19:18:34 +0000 (15:18 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 11 Jul 2016 19:30:31 +0000 (19:30 +0000)
This reverts commit 71301d18244a3a26a6ba6fd3934633ef94811a15.

I was confused by the fact that the non-matching content was
empty and forgot we already did print it.

Reported-by: smcv
Closes: #390
Approved by: jlebon

tests/libtest.sh

index e93b9510aedbf76a5272f946c2405576732980da..2d064299cb93b5b8e09cce93b6084d7f71a60815 100755 (executable)
@@ -138,7 +138,6 @@ assert_file_has_content () {
     if ! grep -q -e "$2" "$1"; then
         sed -e 's/^/# /' < "$1" >&2
         echo 1>&2 "File '$1' doesn't match regexp '$2'"
-       cat $1
         exit 1
     fi
 }